<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="d" uri="http://dgg.net/jsp/jstl/core" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<%--预定了证书的匹配页面--%>
<div class="body-main">
    <div class="finan-panel">
        <div class="finan-tit">
            <b>已预订证书</b>
        </div>
        <div class="panel-table">
            <table class="layui-table crm-table">
                <thead>
                <tr>
                    <th>证书编号</th>
                    <th>持证人</th>
                    <th>证书名称</th>
                    <th>证书类型</th>
                    <th>证书专业</th>
                    <th>证书等级</th>
                    <th>证书价格（元）</th>
                    <th>应用范围</th>
                    <th>类别</th>
                    <th>三类证书</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                <c:forEach items="${generalCertificateList}" var="gen">
                    <tr class="advanceClassTr">
                        <td>
                            <a href='javascript:void(0);' class='layui-table-link'
                               onclick="credentialDetail('${gen.certificateNo}','${gen.id}')"> ${gen.certificateNo}</a>
                        </td>
                        <td>${gen.personalName}</td>
                        <td>${gen.certificateName}</td>
                        <td>${gen.certificateType}</td>
                        <td>${gen.certificateSpecialtys}</td>
                        <td>${gen.certificateLevel}</td>
                        <td>${gen.receiptPrice}</td>
                        <td>${gen.applicationScope}</td>
                        <td>${gen.certificateCategory}</td>
                        <td>${gen.certificateToThree}</td>
                        <td>
                            <a href="javascript:void(0)" class="iboss-link"
                               onclick="matchAdvanceCertificate('${gen.id}','${gen.certificateNo}','${scOrderId}',1,this)">匹配</a>
                            <a href="javascript:void(0)" class="iboss-link"
                               onclick="cancelAdvanceCertificate('${gen.id}','${gen.certificateNo}','${scOrderId}',1,this)">取消预订</a>
                        </td>
                    </tr>
                </c:forEach>
                <c:if test="${empty generalCertificateList}">
                    <tr><td colspan="10" style="text-align: center">没有数据</td></tr>
                </c:if>
                </tbody>
            </table>
        </div>
    </div>
</div>

